<?php 

include "../includes/functions.php";
echo db_connect();
  

$query='SELECT * FROM wall ORDER BY `timestamp` DESC LIMIT 200';   
 //echo $query;
if (!$result= mysql_query($query)) echo mysql_error();
   
 while ($row= mysql_fetch_array($result)) {
 		$wall_id=$row['id'];
		$timestamp= date('Y/m/d',strtotime($row['timestamp']));
		//$timestamp= $row['timestamp'];  
		$author=$row['author'];
		$message=$row['message'];
		
		echo "<div class='wall_message'>$message<div id='wall_author'>-$author :: $timestamp</div></div>"; 
}
 ?>

